<%@include file="../_common/header.jsp" %>
<%@include file="../_common/nav-header.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%
    models.beans.User user= (models.beans.User)request.getSession().getAttribute("user");
    if(user == null || !user.getRole().equalsIgnoreCase(user.ROLE_ADMIN)){
        response.sendRedirect("../");
        }
%>
<div class="container">
    <div class="side-container">
        <%@include file="left_menu.jsp" %>
    </div>
    <div class="main-container">
        <logic:notPresent parameter="opt">
            <%@include file="dashboardHome.jsp"%>
        </logic:notPresent>

        <logic:present parameter="opt">
            <logic:equal parameter="opt" value="employeeList">
                <%@include file="empmgt/employeeList.jsp"%>
            </logic:equal>

            <logic:equal parameter="opt" value="employeeAdd">
                <%@include file="empmgt/employeeAdd.jsp"%>
            </logic:equal>

            <logic:equal parameter="opt" value="changePassword">
                <%@include file="myprofile/changePassword.jsp"%>
            </logic:equal>

            <logic:equal parameter="opt" value="profile">
                <%@include file="myprofile/profile.jsp"%>
            </logic:equal>

            <logic:equal parameter="opt" value="eventAdd">
                <%@include file="eventmgt/eventAdd.jsp"%>
            </logic:equal>

            <logic:equal parameter="opt" value="eventList">
                <%@include file="eventmgt/eventList.jsp"%>
            </logic:equal>

              <logic:equal parameter="opt" value="eventEdit">
                <%@include file="eventmgt/eventEdit.jsp"%>
            </logic:equal>
             <logic:equal parameter="opt" value="contactlist">
                <%@include file="contactmgt/contactlist.jsp"%>
            </logic:equal>
             <logic:equal parameter="opt" value="contactadd">
                <%@include file="contactmgt/contactadd.jsp"%>
            </logic:equal>
             <logic:equal parameter="opt" value="contactedit">
                <%@include file="contactmgt/contactedit.jsp"%>
            </logic:equal>
             <logic:equal parameter="opt" value="faqlist">
                <%@include file="faqmgt/faqlist.jsp"%>
            </logic:equal>
             <logic:equal parameter="opt" value="faqadd">
                <%@include file="faqmgt/faqadd.jsp"%>
            </logic:equal>
             <logic:equal parameter="opt" value="faqedit">
                <%@include file="faqmgt/faqedit.jsp"%>
            </logic:equal>


        </logic:present>



    </div>
</div>
<%@include file="../_common/footer.jsp" %>

